package com.huangym.springredis.web;

import org.springframework.stereotype.Component;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.github.bohnman.squiggly.Squiggly;
import com.github.bohnman.squiggly.web.RequestSquigglyContextProvider;

@Component("customObjectMapper")
public class CustomObjectMapper extends ObjectMapper {

	private static final long serialVersionUID = 1581894681091744319L;

	public CustomObjectMapper() {
        Squiggly.init(this, new RequestSquigglyContextProvider());
	}
}